home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 1 / Amiga Tools.iso / egs-tools / egs_demo-version / egs_devels / examples / stack_language / global.h < prev    next >
C/C++ Source or Header  |  1994-06-06  |  5KB  |  204 lines

  1. /*
  2. ** Author: Markus van Kempen
  3. **
  4. ** Global variables & structures
  5. **
  6. **
  7. ** (c) by VIONA-Development 1992/93
  8. */
  9.  
  10. /* SEE window structure below */
  11.  
  12. #define   WIN_LEFT      100               /* left border of window*/
  13. #define   WIN_TOP       100               /* top edge of window */
  14.  
  15. #define   WIN_HEIGHT    120               /* ... */
  16. #define   WIN_WIDTH     220               /* ... */
  17.  
  18. #define   WIN_MINHEIGHT 120               /* MinHeight */
  19. #define   WIN_MINWIDTH  220               /* MinWidth  */
  20.  
  21.  
  22.  
  23. /*
  24. **  variables
  25. */
  26.  
  27. int                 dummy;
  28. EI_MenuPtr          Menu;          /* used in main.c InitMenu.c */
  29. EG_EFontPtr         FontforMenu;
  30. struct EI_Window    *Window;
  31. ER_SimpleRequestPtr ErrorReq;
  32.  
  33. struct OpenStructTyp
  34. {
  35.         ULONG* Ort;
  36.         char * Name;
  37.         ULONG Version;
  38. };
  39.  
  40.  
  41. /*
  42.  * The EGS Lib bases
  43.  *
  44.  */
  45.  
  46. struct Library *EGSBase;
  47. struct Library *EGSBlitBase;
  48. struct Library *EGSLayersBase;
  49. struct Library *EGSGfxBase;
  50. struct Library *EGSIntuiBase;
  51. struct Library *EGSRequestBase;
  52. struct Library *EGBBase;
  53. struct Library *EGBMenuSelectBase;
  54. struct Library *EGBRadioBase;
  55. struct Library *EGBScrollBase;
  56. struct Library *EGBSelectBase;
  57. struct Library *EGBSetBase;
  58. struct Library *EGBTextInfoBase;
  59.  
  60. /********************************************/
  61.  
  62. struct OpenStructTyp OpenStruct[] =
  63. {
  64.   { (ULONG*) &EGSBase          , "egs.library",0               },
  65.   { (ULONG*) &EGSBlitBase      , "egsblit.library",0           },
  66.   { (ULONG*) &EGSLayersBase    , "egslayers.library",0         },
  67.   { (ULONG*) &EGSGfxBase       , "egsgfx.library",0            },
  68.   { (ULONG*) &EGSIntuiBase     , "egsintui.library",0          },
  69.   { (ULONG*) &EGBBase          , "egsgadbox.library",0         },
  70.   { (ULONG*) &EGSRequestBase   , "egsrequest.library",0         },
  71.   { (ULONG*) &EGBMenuSelectBase, "egb/gbmenuselect.library",0  },
  72.   { (ULONG*) &EGBRadioBase     , "egb/gbradio.library",0       },
  73.   { (ULONG*) &EGBScrollBase    , "egb/gbscrollbox.library",0   },
  74.   { (ULONG*) &EGBSelectBase    , "egb/gbselect.library",0      },
  75.   { (ULONG*) &EGBSetBase       , "egb/gbsets.library",0        },
  76.   { (ULONG*) &EGBTextInfoBase  , "egb/gbtextinfo.library",0    },
  77.   { 0L,0L,0L }
  78. };
  79.  
  80. struct EI_NewWindow newwin =
  81. {
  82.   WIN_LEFT,                       /* left border of window*/
  83.   WIN_TOP,                        /* top edge of window */
  84.  
  85.   WIN_WIDTH,                      /* ... */
  86.   WIN_HEIGHT,                     /* ... */
  87.  
  88.   WIN_MINWIDTH,                   /* MinWidth  */
  89.   WIN_MINHEIGHT,                  /* MinHeight */
  90.   800,                            /* MaxWidth  */
  91.   600,                            /* MaxHeight */
  92.   NULL,                           /* Screen    */
  93.             /* sysGadget */
  94.  
  95.    EI_WINDOWDRAG |
  96.    EI_WINDOWCLOSE | EI_WINDOWSIZE |
  97.    EI_WINDOWFRONT | EI_WINDOWBACK,
  98. /*
  99. EI_WINDOWFLIP
  100. EI_WINDOWBIG
  101. EI_WINDOWSMALL
  102. EI_WINDOWICON
  103. EI_WINDOWARROWL
  104. EI_WINDOWARROWR
  105. EI_WINDOWARROWU
  106. EI_WINDOWARROWD
  107. EI_WINDOWSCROLLH
  108. EI_WINDOWSCROLLV
  109. EI_WINDOWDRAG
  110. */
  111.  
  112.   NULL,                           /* EI_GadgetPtr -> gadgets   */
  113.                                   /* FirstGadget */
  114.   "Titel",                        /* Titel                     */
  115.  
  116.                                   /* Flags  */
  117.  
  118.    EI_WINDOWACTIVE     |
  119.    EI_WINDOW_MENULOCAL |
  120.    EI_FRONTBACKGADGET  |
  121.    EI_WINDOWCENTER     |
  122.    EI_SIMPLE_REFRESH   |
  123.    EI_GIMMEZEROZERO    |
  124.    EI_SIZEBRIGHT       ,
  125.  
  126.  
  127. /* Corresponding EI_WindowFlagSet has 32 bits ! */
  128.  
  129. /*
  130.  
  131. EI_GIMMEZEROZERO
  132. EI_BORDERLESS
  133. EI_SUPER_BITMAP
  134. EI_SIMPLE_REFRESH
  135. EI_WINDOWREFRESH
  136. EI_WINDOWACTIVE
  137. EI_WINDOW_MENULOCAL
  138. EI_OWN_IDCMPPORT
  139. EI_OWN_COLORPALETTE
  140. EI_FRONTBACKGADGET
  141. EI_RMBTRAP
  142. EI_REPROTMOUSE
  143. EI_BACKDROP
  144. EI_SMART_REFRESH
  145. EI_WINDOW_MENUPOPUP
  146. EI_SIZEBBOTTOM
  147. EI_SIZEBRIGHT
  148. EI_WINDOW_USERSTYLE
  149. EI_ACTIVETOFRONT
  150. EI_QUICKSCROLL
  151. EI_WINDOW_SLEEPING
  152. EI_FIXWINDOW_RATIO
  153. EI_FORCE_TO_SCREEN
  154. EI_WINDOWCENTER
  155. EI_SENDOUT_SIDEMOVES
  156.  
  157.  
  158.                                                 /* IDCMP -Flags */
  159.   EI_iCLOSEWINDOW |
  160.   EI_iMOVEWINDOW  |
  161.   EI_iSIZEVERIFY  |
  162.   EI_iNEWSIZE     |
  163.   EI_iMENUPICK,
  164.  
  165.  
  166. /* Corresponding EI_EIDCMPFlagSet has 32 bits ! */
  167. /*
  168.  
  169. EI_iMOUSEBOTTONS
  170. EI_iMOUSEMOVE
  171. EI_iRAWKEY
  172. EI_iACTIVEWINDOW
  173. EI_iREFRESHWINDOW
  174. EI_iCLOSEWINDOW
  175. EI_iNEWSIZE
  176. EI_iGADGETDOWN
  177. EI_iGADGETUP
  178. EI_iMENUVERIFY
  179. EI_iVANILLAKEY
  180. EI_iSIZEVERIFY
  181. EI_iINACTIVEWINDOW
  182. EI_iINTUITICKS
  183. EI_iDISKINSERT
  184. EI_iDISKREMOVE
  185. EI_iNEWPREFS
  186. */
  187.  
  188.   NULL,                           /* MsgPort *p    */
  189.             /* Windowcolors  */
  190.   { 3 ,1 ,0 ,2 ,1 ,3 ,1 },        /* WinColors     */
  191.   NULL,                           /* MenuPtr       */
  192.   NULL                            /* IntuiGfxPtr   */
  193. };
  194.  
  195. struct TextAttr FontStr = {
  196.        "times.font",  /* Name */
  197.        24,            /* Y-Size */
  198.        0,
  199.        0
  200.       };
  201.  
  202.  
  203.  
  204.